// ml:run = $bin < input
#include <iostream>
#include <cmath>

double const eps = 1e-7;
double const l = 300;
double const l2 = l * sqrt(2.0);
double tim, v1, v2;

double get_low(double a, double b, double c)
{
    double del = b * b - 4 * a * c;
    if (del < 0) return -1;
    double x = -b - sqrt(del);
    x /= 2 * a;
    if (x < 0)
        x = (-b + sqrt(del)) / (2 * a);
    return x;
}

bool win1()
{
    double t = (v1 / v2); t *= t;
    double a = 1.0 - t;
    double b = -2.0 * t * l;
    double c = (1.0 - t) * l * l;
    double del = b * b - 4 * a * c;
    if (del < 0) return false;
    double x = -b - sqrt(del);
    x /= 2 * a;
    if (x > l + eps) return false;
    double len = x + l;
    double t1 = len / v1;
    double t2 = tim + (l - x) / v2;
    if (t1 > t2 + eps) return false;
    t1 += l / v1;
    t2 += l / v2;
    if (t1 > t2 + eps) return false;
    return true;
    t1 += l / v1;
    t2 += l / v2;
    if (t1 > t2 + eps) return false;
    return true;
}

bool win2()
{
    double t = (v1 / v2); t *= t;
    double a = 1.0 - t;
    double b = -(2.0 * l + 4 * t * l);
    double c = (2.0 - 4.0 * t) * l * l;
    double x = get_low(a, b, c);
    if (x < 0) return false;
    if (x > l + eps + eps) return false;
    double len = (sqrt(l * l + x * x) + l + l);
    double t1 = len / v1;
    double t2 = tim + (l - x) / v2;
    if (t1 > t2 + eps) return false;
    t1 += l / v1;
    t2 += l / v2;
    if (t1 > t2 + eps) return false;
    return true;
}

bool win3()
{
    double a = v2 * v2 - v1 * v1;
    double b = -2 * l * v1 * (2  * v1 - v2);
    double c = l * l * v2 * v2 - (2 * v1 - v2) * (2 * v1 - v2) * l * l;
    double x = get_low(a, b, c);
    if (x < 0) return false;
    if (x > l + eps) return false;
    double len = x + l;
    double t1 = len / v1;
    double t2 = tim + (l - x) / v2;
    if (t1 > t2 + eps) return false;
    t1 += l / v1;
    t2 += l / v2;
    if (t1 > t2 + eps) return false;
    return true;
}

int main()
{
    std::ios_base::sync_with_stdio(false);
    int T; std::cin >> T;
    for (int ti = 1; ti <= T; ti++) {
        std::cout << "Case #" << ti << ": ";
        std::cin >> tim >> v1 >> v2;
        if (v1 == v2) { std::cout << "Yes\n"; continue; }
        if (tim == 0) { std::cout << "No\n"; continue; }

        if (win1() || win2() || win3())
            std::cout << "Yes\n";
        else
            std::cout << "No\n";
    }
}

